package com.ticket.sass.admin.controller;


import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.ticket.sass.admin.business.OperationLogBusiness;
import com.ticket.sass.admin.dto.input.operationlog.OperationLogListInput;
import com.ticket.sass.admin.dto.output.operationlog.OperationLogModel;
import com.ticket.sass.admin.model.ResultModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ywb
 * @since 2024-03-07
 */
@RestController
@AllArgsConstructor
@ApiSupport(order = 3)
@Api(tags = {"操作日志-模块"})
@RequestMapping("/operation-logs")
public class OperationLogController {
    final OperationLogBusiness business;
    
    @ApiOperation("列表")
    @GetMapping
    public ResultModel<OperationLogModel> list(
        @Valid OperationLogListInput input
    ) {
        return ResultModel.success(
            business.list(input)
        );
    }
}
